<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <a href="#/a">a</a>
  <a href="#/b">b</a>
  <a href="#/c">c</a>
  <script>
    window.onhashchange=function(){
      console.log("改变了")
      console.log(location)
    }
  </script>
</body>
</html>
